package query;

import java.util.List;

import javax.jdo.PersistenceManager;
import javax.jdo.Query;

import com.cinema.data.Adminusr;
import com.cinema.data.PMF;

public class DataQuery1 {
	@SuppressWarnings("unchecked")
	public static List<Adminusr> getAdminUserList(){
		PersistenceManager pm = PMF.get().getPersistenceManager();
		System.out.println("getCurrentFilmList " + pm);
		Query query = pm.newQuery(Adminusr.class);
		List<Adminusr> flist = null;
		try{
			flist = (List<Adminusr>)query.execute();
		}finally{
			query.closeAll();
		}
		return flist;
	}
}
